extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[普通]6CRH穿甲弹"
	att.atk = 50
	att.spd = 0.2	
	att.atkRan = 2
	info = "佩戴者造成炮击伤害时，额外提高[自身炮击-目标装甲]的伤害，最低为10点\n[color=#DC143C]同时装备三件时可升级[/color]"
	
func _connect():
	._connect()
	masCha.connect("onAtkChara",self,"_onAtkChara")

func _onAtkChara(atkInfo):
	if atkInfo.atkType == sys.AtkType.GUN:
		atkInfo.hurtVal += max(10, masCha.att.atk - atkInfo.hitCha.att.def)

func upgrade():
	name = "[color=#FFFF00][史诗]6CRH穿甲弹"
	att.atk = 100
	att.spd = 0.4	
	att.atkRan = 4
	info = "佩戴者造成炮击伤害时，额外提高[自身炮击-目标装甲]的伤害，最低为10点"